package luanluan.events 
{
	import flash.events.Event;
	
	/**
	 * 带有参数的事件
	 * @author luanluan
	 * @version	1.0.1 2011.11.18
	 */
	public class ProxyEvent extends Event 
	{
		private var _param:Object
		
		/**
		 * 
		 * @param	type
		 * @param	param
		 * @param	bubbles
		 * @param	cancelable
		 */
		public function ProxyEvent(type:String, param:Object = null, bubbles:Boolean = false, cancelable:Boolean = false) 
		{
			super(type, bubbles, cancelable);
			_param = param;
		}
		
		public function get param():Object 
		{
			return _param;
		}
		
		public override function clone():Event 
		{ 
			return new ResEvent(type, bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("ProxyEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
	}

}